package com.usian.wemedia.controller.v1;

import com.usian.apis.wemedia.AdLoginControllerApi;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmUserDto;
import com.usian.wemedia.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/v1/login")
public class LoginController implements AdLoginControllerApi {

    @Autowired
    private LoginService ls;

    @Override
    @PostMapping("in")
    public ResponseResult login(@RequestBody WmUserDto dto) {
        return ls.login(dto);
    }


}
